package com.qm.console.dao.mapper;

import com.qm.console.controller.vo.comm.query.TimeOffsetQuery;
import com.qm.console.dao.model.ScreenShotsDO;
import com.qm.console.pubdef.dto.anchor.ScreenShotQueryDTO;
import com.qm.console.pubdef.dto.anchor.VideoRecordQueryDTO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScreenShotsDOMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScreenShotsDO record);

    int insertSelective(ScreenShotsDO record);

    ScreenShotsDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ScreenShotsDO record);

    int updateByPrimaryKey(ScreenShotsDO record);

    List<ScreenShotsDO> list(ScreenShotQueryDTO query);
    int count(ScreenShotQueryDTO query);

    List<Integer> listUid(ScreenShotQueryDTO queryDTO);

    void markDelete(@Param("tableId") String tableId, @Param("chatId") String channelId);

    List<ScreenShotsDO> listDeleteImages(@Param("tableId") String table);

    void deleteItem(@Param("tableId") String tableId, @Param("id") Integer id);

    List<ScreenShotsDO> selectMaxRate(ScreenShotQueryDTO query);
}